/*
    GPL 2.0 license
    Copyright 2004-2008 by Paul Hsieh 
    http://www.azillionmonkeys.com/qed/hash.html
*/

#ifndef SuperFastHash_h_d83435307f59fa38142461c63e50d244_
#define SuperFastHash_h_d83435307f59fa38142461c63e50d244_

#include <string.h>
#include <stdio.h>

#include "stdint.h" /* Replace with <stdint.h> if appropriate */
#undef get16bits
#if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) \
  || defined(_MSC_VER) || defined (__BORLANDC__) || defined (__TURBOC__)
#define get16bits(d) (*((const uint16_t *) (d)))
#endif

#if !defined (get16bits)
#define get16bits(d) ((((uint32_t)(((const uint8_t *)(d))[1])) << 8)\
                       +(uint32_t)(((const uint8_t *)(d))[0]) )
#endif

uint32_t sfhash (const char * data, int len); 

#endif // SuperFastHash_h_d83435307f59fa38142461c63e50d244_


